
<input type="hidden" id="old_{{sugarvar key='name'}}" name="old_{{sugarvar key='name'}}" value="{$fields[{{sugarvar key='name' stringFormat=true}}].value}"/>
<input id="{{sugarvar key='name'}}" name="{{sugarvar key='name'}}" type="file" title='{{$vardef.help}}' size="{{$displayParams.size|default:30}}" {{if !empty($vardef.len)}}maxlength='{{$vardef.len}}'{{elseif !empty($displayParams.maxlength)}}maxlength="{{$displayParams.maxlength}}"{{else}}maxlength="255"{{/if}} value="{$fields[{{sugarvar key='name' stringFormat=true}}].value}" {{$displayParams.field}}> 

{if !empty({{sugarvar key='value' string=true}})}
<br />
<span class='dateFormat'>{$fields[{{sugarvar key='name' stringFormat=true}}].value}</span>
&nbsp;&nbsp;&nbsp;{$APP.LBL_PHOTO_CLEAR_CHECKBOX}: <input id="clear_{{sugarvar key='name'}}" name="clear_{{sugarvar key='name'}}" type="checkbox" value="1"/>
<br/>
<img src='cache/images/{$fields.id.value}_{{sugarvar key='value'}}' {{if $vardef.ext2 == 1 && !empty($vardef.ext3)}}width='{{$vardef.ext3}}'{{/if}} {{if $vardef.ext2 == 1 && !empty($vardef.ext4)}}height='{{$vardef.ext4}}'{{/if}}>
{/if}
